package cmd

import (
	"fmt"
	"github.com/spf13/cobra"
	"github.com/spf13/viper"
	"os"
)

var rootCmd = &cobra.Command{
	Use:   "migration",
	Short: "",
	Long:  ``,
	Args:  cobra.NoArgs,
}

func init() {
	viper.BindPFlags(rootCmd.Flags())
	viper.AutomaticEnv()
}

func Execute() {
	if err := rootCmd.Execute(); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}
